package com.hk.blog.repository.jpa;

import com.hk.blog.domain.Permission;
import com.hk.core.data.jpa.repository.LongIdJpaRepository;

import java.util.Optional;

public interface PermissionRepository extends LongIdJpaRepository<Permission> {

    Optional<Permission> findByPermissionCode(String permissionCode);

    boolean existsByPermissionCode(String permissionCode);


}
